import axios from 'axios';
import qs from 'querystring';

export const getSwitchList = params => {
  return axios.get(`/api/system/getSwitchList?${qs.stringify(params)}`);
};

export const addSwitch = body => {
  return axios.post('/api/system/addSwitch', body);
};

export const editSwitch = body => {
  return axios.post('/api/system/editSwitch', body);
};

export const deleteSwitch = body => {
  return axios.post('/api/system/deleteSwitch', body);
};

export const changeSwitchStatus = body => {
  return axios.post('/api/system/changeSwitchStatus', body);
};

export const checkSwitch = body => {
  return axios.post('/api/system/checkSwitch', body);
};
